Skip to main content

All Questions

2votes
1answer
88views

ArrayPractice with shifting arrays, generate new arrays populated with even numbers, and more

This is from my second homework assignment in my Data Structures class (in which we use Java), we were simply given the task of filling out the functions shown below (they were empty before) and I was ...
Jackson Kirkpatrick's user avatar
5votes
1answer
709views

Space Invaders clone for a college project

Edit: the project was submitted, and I got a good grade! :D I am finishing up a project for my computer science class. The project is a space invaders clone that uses the JavaFX library to provide ...
puppeteer's user avatar
2votes
1answer
2kviews

Salaries exercise

Hey there guys, I have just completed an exercise for uni and I would really like some feedback as I'm pretty new to using java. Areas that I could especially use some input in this instance: ...
user avatar
3votes
2answers
130views

Add three integers and report the sign of the sum

I am in my first high school programming course; the assignment is: Write a program that asks the user to input three integers and outputs a message indicating their sum and whether it is positive,...
Conor Oepkes's user avatar
2votes
2answers
1kviews

Simple console based car array

I have recently started coding in Java and I had to do this assignment in college. Develop a menu driven application called TestCarPartc that allows the user to ...
thisGuyCodes's user avatar
0votes
1answer
3kviews

Java OOP HomeWork [closed]

My professor is super strict and just want to know if I have solved this correctly. Design a class named Location for locating a maximal value and its location in a two-dimensional array. The class ...
george129's user avatar
5votes
1answer
468views

A "pointless" animation program

The assignment description for this code is this: Each time the user clicks the Circles button, randomly colored circles flow into the display and continuously change their shapes. Here is a ...
syb0rg's user avatar
  • 21.9k
2votes
2answers
1kviews

Booking system for shows

Kindly accept my apologies as Java is something my mind cannot digest no matter what I do. At the moment I have an assignment and have written a piece of code and have used Constructor (I think so) ...
Baig's user avatar
  • 123
13votes
5answers
4kviews

Enter my Matrix

Here is my next Java assignment: create a Matrix class that can add and multiply two matrices together. I was given some code as a skeleton and then fleshed it out ...
syb0rg's user avatar
  • 21.9k
8votes
2answers
890views

Bridge, We've Got a Problemo

Now that we can move across the bridge, it's time to finally set up the problem so that it can be solved. A reminder of what the assignment is: Welcome to the Bridge Crossing Problem. Person Pn can ...
syb0rg's user avatar
  • 21.9k
7votes
2answers
203views

Moving across my (sturdier?) Bridge

Building on top of the classes in this question of mine, I've made this class to support the moving of the entities for my given assignment: Welcome to the Bridge Crossing Problem. Person Pn can ...
syb0rg's user avatar
  • 21.9k
8votes
1answer
161views

I think my Bridge's foundation is too fragile

I've just started a new class learning Java, and since it's been a long time since I've programmed in it I thought I'd put up my first project to get back in the swing of things. Here is my first ...
syb0rg's user avatar
  • 21.9k
6votes
2answers
4kviews

Three-in-a-row board game

I don't truly understand how OOP works and It's stopping me from creating good programs! Below I have a program that will check to see if there are 3 tiles from a gridview in a row. Here's a ...
James111's user avatar
-2votes
2answers
673views

Manipulating strings and character positions

Write a program that manipulates two strings. The program inputs two strings (string1 and string2) and a character (...
Sam Leavitt's user avatar
0votes
2answers
7kviews

Fractions in Java [closed]

Part I-IV recommend code changes as mentioned in link 1, for the initial code given at link 2. Can you please review the code changes for Part I-IV? Part I: Constructors (1 point) Modify the ...
overexchange's user avatar

close